import { axios } from "./axios"

/* 获取广告图 */
export const getAdvImages = (data: any) => {
  return axios({
    url: '/api/getAdvImages',
    data,
    method: 'get'
  })
}

/* 获取产品搜索页左侧栏目 */
export const getProductListLeft = (data:any) => {
  return axios({
    url: '/api/getSearchLeftMenu',
    data,
    method: 'get'
  })
}

/* 产品搜索 */
export const getProductSearch = (data: any) => {
  return axios({
    url: '/api/search',
    data,
    method: 'post'
  })
}

/** 获取搜索页排序 */
export const getSearchSortList = () => {
  return axios({
    url: '/api/getSearchSortList',
    method: 'get'
  })
}

/** 获取下载中心左侧栏目 */
export const getDownloadSearchLeftMenu = (data:any) => {
  return axios({
    url: '/api/getDownloadSearchLeftMenu',
    data,
    method: 'get',
  })
}

/** 下载中心搜索 */
export const getDownloadSearch = (data: any) => {
  return axios({
    url: '/api/downloadSearch',
    data,
    method: 'post'
  })
}

/** 用户下载 */
export const userDownload = (data: any) => {
  return axios({
    url: '/api/download',
    data,
    method: 'get'
  }) 
}

/** 获取方案详情 */
export const getSolutionDetail = (data: any) => {
  return axios({
    url: '/api/getPlanDetail',
    data,
    method: 'post'
  })
}


/* 获取首页文章推荐 */
export const getIndexRecommendArticle = (data: any) => {
  return axios({
    url: '/api/getIndexRecommendArticle',
    data,
    method: 'get'
  })
}

/* 获取顶部导航栏 */
export const getTagsList = (data: any) => {
  return axios({
    url: '/api/getTagsList',
    data,
    method: 'get'
  })
}

/* 获取底部栏目 */
export const getFooterTagsList = () => {
  return axios({
    url: '/api/getFooterTagsList',
    method: 'get'
  })
}
/* 新闻列表 */
export const getArticleList = (data: any) => {
  return axios({
    url: '/api/getArticleList',
    method: 'get',
    data
  })
}
/* 新闻分类 */
export const getArticleCate = () => {
  return axios({
    url: '/api/getArticleCate',
    method: 'get',
  })
}

/* 新闻分类 */
export const getArticleDetail = (data: any) => {
  return axios({
    url: '/api/getArticleDetail',
    method: 'get',
    data
  })
}
/* 大搜索接口搜索文件 */
export const commonSearch = (data: any) => {
  return axios({
    url: '/api/commonSearch',
    method: 'get',
    data
  })
}
/* 获取大搜索页左侧栏目 */
export const getCommonSearchMenu = (data: any) => {
  return axios({
    url: '/api/getCommonSearchMenu',
    method: 'get',
    data
  })
}

/* 获取元件页左侧栏目 */
export const getComponentsMenu = (data: any) => {
  return axios({
    url: '/api/getComponentsMenu',
    method: 'get',
    data
  })
}

/* 获取Faq配置 */
export const getFAQlist = (data: any) => {
  return axios({
    url: '/api/getFAQlist',
    data,
    method: 'get'
  })
}

/* 获取底部三个导航栏目 */
export const getFooterCommonMenu = () => {
  return axios({
    url: '/api/getFooterCommonMenu',
    method: 'get'
  })
}

/* 获取优势栏目 */
export const getJointDesginAdvantages = () => {
  return axios({
    url: '/api/getJointDesginAdvantages',
    method: 'get'
  })
}

/* 获取定制流程 */
export const getJointDesginProcess = () => {
  return axios({
    url: '/api/getJointDesginProcess',
    method: 'get'
  })
}

/* 获取关于我们服务列表 */
export const getAboutUsServices = () => {
  return axios({
    url: '/api/getAboutUsServices',
    method: 'get'
  })
}

/* 获取关于我们视频信息 */
export const getAboutUsVideos = () => {
  return axios({
    url: '/api/getAboutUsVideos',
    method: 'get'
  })
}

/* 联合开发产品 */
export const getJointDesginList = () => {
  return axios({
    url: '/api/getJointDesginList',
    method: 'get'
  })
}

/* 获取下一篇文章 */
export const getNextArticle = (data: any) => {
  return axios({
    url: '/api/getNextArticle',
    method: 'get',
    data
  })
}
/* 获取上一篇文章 */
export const getPrevArticle = (data: any) => {
  return axios({
    url: '/api/getPrevArticle',
    method: 'get',
    data
  })
}

/* 获取网站基本配置 */
export const getWebConfig = () => {
  return axios({
    url: '/api/getWebConfig',
    method: 'get'
  })
}

/** 获取底部协议 */
export const getFooterAgreement = () => {
  return axios({
    url: '/api/getFooterAgreement',
    method: 'get'
  })
}

/** 获取底部协议详情 */
export const getAgreementDetail = (data: any) => {
  return axios({
    url: '/api/getAgreementDetail',
    method: 'get',
    data
  })
}

/* faqs搜索 */
export const faqSearch = (data:any) =>{
  return axios({
    url:'/api/faqSearch',
    data,
    method:'get'
  })
}

// 记录用户访问页面
export const createUserVisitLog = (data:any) =>{
  return axios({
    url:'/api/createUserVisitLog',
    data,
    method:'get'
  })
}

// 获取合伙人配置页面
export const getPartnerConfig = () => {
  return axios({
    url:'/api/getPartnerConfig',
    method:'get'
  })
}

// 获取定制栏目
export const getCustomizedMenuList = () => {
  return axios({
    url:'/api/getCustomizedMenuList',
    method:'get'
  })
}

// 获取动态表单
export const getCustomizedContent = (data:any) => {
  return axios({
    url:'/api/getCustomizedContent',
    data,
    method:'get'
  })
}

// 提交定制表单
export const saveUserCustomizedCont = (data:any) => {
  return axios({
    url:'/api/saveUserCustomizedCont',
    data,
    method:'post'
  })
}

// 获取定制需求详情
export const getUserCustomizedCont = (data:any) => {
  return axios({
    url:'/api/getUserCustomizedCont',
    data,
    method:'get'
  })
}

// 获取平台生态左侧栏
export const getPlatformLeftMenu = () => {
  return axios({
    url: '/api/getPlatformLeftMenu',
    method: 'get'
  })
}

// 平台生态产品列表
export const getProductsList = (data:any) => {
  return axios({
    url: '/api/getProductsList',
    data,
    method:'post'
  })
}

// 平台生态产品详情
export const getProductsDetail = (data: any) => {
  return axios({
    url: '/api/getProductsDetail',
    data,
    method:'post'
  })
}

// 用户申请体验
export const userApply = (data: any) => {
  return axios({
    url: '/api/userApply',
    data,
    method:'post'
  })
}

/* 获取首页8个企业 */
export const getCompanyList = (data: any) => {
  return axios({
    url: '/api/getCompanyList',
    data,
    method: 'get',
  })
}

/* 获取产业详情企业列表 */
export const getCompanyByIndustrial = (data: any) => {
  return axios({
    url: '/api/getCompanyByIndustrial',
    data,
    method: 'get',
  })
}

/* 获取下一级产业 */
export const getIndustrialByPid = (data: any) => {
  return axios({
    url: '/api/getIndustrialByPid',
    data,
    method: 'get',
  })
}

/* 获取企业详情 */
export const getCompanyDetail = (data: any) => {
  return axios({
    url: '/api/getCompanyDetail',
    data,
    method: 'get',
  })
}

/* 获取企业入驻行业 */
export const getCompanyJoinCategoryList = () => {
  return axios({
    url: '/api/getCompanyJoinCategoryList',
    method: 'get',
  })
}

/* 获取随机产品 */
export const getRandCompanyProduct = (data: any) => {
  return axios({
    url: '/api/getRecommendProduct',
    data,
    method: 'get',
  })
}

/* 获取产业集群一级产业 */
export const getTopIndustrialList = () => {
  return axios({
    url: '/api/getTopIndustrialList',
    method: 'get',
  })
}

/* 获取产业详情 */
export const getIndustrialInfo = (data:any) => {
  return axios({
    url: '/api/getIndustrialInfo',
    method: 'get',
    data
  })
}

/* 获取视频中心 */
export const getVideoList = () => {
  return axios({
    url: '/api/getVideoList',
    method: 'get',
  })
}